Managing Shared and Local Memory

p4_malloc
\begin{example}
char *p4_malloc(n)
int n;
\end{example}
typically acts like the standard malloc, but may be rewritten for user systems that require different operation.

p4_free
\begin{example}
VOID p4_free(p)
char *p;
\end{example}
typically acts like the standard free, but may be rewritten for user systems that require different operation.

p4_shmalloc
\begin{example}
char *p4_shmalloc()
\end{example}
acts like the standard malloc except will obtain shared memory on machines that support sharing memory among processes. Compare with p4_malloc.

p4_shfree
\begin{example}
VOID p4_shfree()
\end{example}
frees memory obtained with p4_shmalloc. Compare with p4_free.

Shared Memory Data Types,Monitor-Building Primitives,Managing Shared and Local Memory,Functions for Shared Memory